package com.chuantou.yuba.api.to;

import java.util.List;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 资讯->详情TO
 * 
 * @author dl1001
 * 
 */
public class NewsContentTO implements Parcelable {
	// 资讯ID
	@SerializedName("id")
	private long id;
	// 标题
	@SerializedName("title")
	private String title;
	// 来源
	@SerializedName("source")
	private String source;
	// 发布时间
	@SerializedName("dateline")
	private long publishTime;
	// 阅读量
	@SerializedName("views")
	private int viewCount;
	// 文章正文内容
	@SerializedName("content")
	private List<BaseNewsTypeTO> newsContents;

	public NewsContentTO() {
	}

	public NewsContentTO(Parcel source) {
		// TODO 需要序列化时再做
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO 需要序列化时再做
	}

	public static final Creator<NewsContentTO> CREATOR = new Creator<NewsContentTO>() {

		@Override
		public NewsContentTO[] newArray(int size) {
			return new NewsContentTO[size];
		}

		@Override
		public NewsContentTO createFromParcel(Parcel source) {
			return new NewsContentTO(source);
		}
	};

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public long getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(long publishTime) {
		this.publishTime = publishTime;
	}

	public List<BaseNewsTypeTO> getNewsContents() {
		return newsContents;
	}

	public void setNewsContents(List<BaseNewsTypeTO> newsContents) {
		this.newsContents = newsContents;
	}

	public int getViewCount() {
		return viewCount;
	}

	public void setViewCount(int viewCount) {
		this.viewCount = viewCount;
	}

}
